package com.xufei.user.feign;

import com.xufei.common.constant.XufeiServerConstant;
import com.xufei.common.domain.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name= XufeiServerConstant.XUFEI_USERSERVER)
public interface UserFeignClient {
    @PostMapping("user/updateIntegral")
    void updateIntegral(@RequestBody User user);

    @RequestMapping("user/selectUserByUsername")
    User selectUserByUsername(@RequestParam String userName);
}
